//
// heartbeat.h
//

#ifndef KITTY_HEARTBEAT_H
#define KITTY_HEARTBEAT_H

#include <ctime>
#include <string>
#include <boost/shared_ptr.hpp>

namespace kitty {

struct heartbeat
{
    std::string    ip;
    unsigned short port;
    time_t         timestamp; // peer timestamp

    template <typename Archive>
    void serialize(Archive& ar, const unsigned int version)
    {
        ar & ip;
        ar & port;
        ar & timestamp;
    }
};

typedef boost::shared_ptr<kitty::heartbeat> heartbeat_ptr;

} // namespace kitty

#endif // KITTY_HEARTBEAT_H

